﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Registration.aspx.cs" Inherits="SES.CMS.Registration" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="Registration" style="">
            <h2>
                Đăng ký thành viên WebSite TopBike</h2>
            <div class="fieldset">
                
                <table style="width: 100%;">
                    <tr>
                        <td id="label">
                            <asp:Label ID="Label1" runat="server" Text="Họ tên : "></asp:Label><span style="color: Red">*</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtName" runat="server" Height="23px" Width="200px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ValidationGroup="dangky"
                                ControlToValidate="txtName" CssClass="validate-x" Display="Dynamic"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td id="label">
                            <asp:Label ID="Label2" runat="server" Text="Email : "></asp:Label><span style="color: Red">*</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtEmail" runat="server" Height="23px" Width="200px"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail" CssClass="validate-x"
                                ErrorMessage="*" ValidationGroup="dangky"
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                Display="Dynamic"></asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ValidationGroup="dangky"
                                ControlToValidate="txtEmail" Display="Dynamic" CssClass="validate-x"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td id="label">
                            <asp:Label ID="Label3" runat="server" Text="Địa chỉ : "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtAdress" runat="server" Height="23px" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td id="label">
                            <asp:Label ID="Label4" runat="server" Text="Giới tính : "></asp:Label>
                        </td>
                        <td>
                            <%--<asp:RadioButtonList ID="rdSex" runat="server" 
                            RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Value="0">Nam</asp:ListItem>
                            <asp:ListItem Value="1">Nữ</asp:ListItem>
                        </asp:RadioButtonList>--%>
                            <asp:RadioButton ID="rdoNam" Checked="true" Text="Nam" runat="server" GroupName="Source" />
                            <asp:RadioButton ID="rdoNu" Text="Nữ" runat="server" GroupName="Source" />
                        </td>
                    </tr>
                    <tr>
                        <td id="label">
                            <asp:Label ID="Label5" runat="server" Text="Tên đăng nhập : "></asp:Label><span style="color: Red">*</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtUserName" runat="server" Height="23px" Width="200px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" CssClass="validate-x" runat="server" ErrorMessage="*" ValidationGroup="dangky"
                                ControlToValidate="txtUserName" Display="Dynamic"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td id="label">
                            <asp:Label ID="Label6" runat="server" Text="Mật khẩu : "></asp:Label><span style="color: Red">*</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtPass" runat="server" Height="23px" Width="200px" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" CssClass="validate-x" runat="server" ErrorMessage="*" ValidationGroup="dangky"
                                ControlToValidate="txtPass" Display="Dynamic"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td id="label">
                            <asp:Label ID="Label7" runat="server" Text="Nhập lại mất khẩu : "></asp:Label><span
                                style="color: Red">*</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtPassword" runat="server" Height="23px" Width="200px" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" CssClass="validate-x" runat="server" ErrorMessage="*" ValidationGroup="dangky"
                                ControlToValidate="txtPassword" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CompareValidator1" CssClass="validate-x" runat="server" ControlToCompare="txtPass"
                                ControlToValidate="txtPassword" ErrorMessage="*" Display="Dynamic" ValidationGroup="dangky"
                                ValueToCompare="dangky"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td id="label">
                            <asp:Label ID="Label8" runat="server" Text="Điện thoại : "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtPhone" runat="server" Height="23px" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="display=none;">
                        <td id="label">
                            <asp:Label ID="Label9" runat="server" Text="Ngày sinh : "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtBirtday" runat="server" Height="23px" Width="200px" Format="dd/MM/yyyy"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <p >
                    <asp:Button ID="btnSignUp" CssClass="btnLogin" runat="server" Text="Đăng ký" 
                        OnClick="btnDangky_Click" ValidationGroup="dangky" />
                    <asp:Button ID="btnLogin" CssClass="btnLogin" runat="server" Text="Làm lại" OnClick="btnLamlai_Click"
                        CausesValidation="False" />
                    <asp:Button ID="btnHuy" CssClass="btnLogin" runat="server" Text="Hủy" OnClick="btnhuy_Click"
                        CausesValidation="False" />
                </p>
            </div>
        </div>
</asp:Content>
